package com.example.canteen.service;

import com.example.canteen.dao.User;
import com.example.canteen.dto.UserDTO;

import java.util.Map;
import java.util.Set;

public interface UserService {
    Set<UserDTO> getAllUsers();
    UserDTO getUserByName(String username);
    Map<String, Object> login(String username, String password);
    Long register(UserDTO userDTO);

    UserDTO updateUserById(Long id, String name, String password, User.UserType type,String department);
    void deleteUserById(Long id);
}
